#!/bin/bash

# refer to : https://superset.apache.org/docs/contributing/translations/

cd /tmp/build/

pybabel extract -F ./babel.cfg -o ./messages.pot -k _ -k __ -k t -k tn -k tct .

pybabel update -i ./messages.pot -d . --ignore-obsolete

cd /tmp/build/zh/LC_MESSAGES

po2json messages.po messages.json

pybabel compile -d /tmp/build
